package com.cqhfan.chatroom.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @author 眭传洪
 * @create 2024-11-14 20:49
 */
@Getter
public enum SexType {
    MAN(0, "男"),
    WOMAN(1, "女")
    ;

    SexType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @JsonValue
    @EnumValue
    final Integer value;

    final String desc;

}
